﻿using System;

namespace Eneta.Portal.Forum.Rss
{
    [Serializable]
    public class RssCloud : RssElement
    {
        // Fields
        private string domain = "";
        private string path = "";
        private int port = -1;
        private RssCloudProtocol protocol = RssCloudProtocol.Empty;
        private string registerProcedure = "";

        // Properties
        public string Domain
        {
            get
            {
                return this.domain;
            }
            set
            {
                this.domain = RssDefault.Check(value);
            }
        }

        public string Path
        {
            get
            {
                return this.path;
            }
            set
            {
                this.path = RssDefault.Check(value);
            }
        }

        public int Port
        {
            get
            {
                return this.port;
            }
            set
            {
                this.port = RssDefault.Check(value);
            }
        }

        public RssCloudProtocol Protocol
        {
            get
            {
                return this.protocol;
            }
            set
            {
                this.protocol = value;
            }
        }

        public string RegisterProcedure
        {
            get
            {
                return this.registerProcedure;
            }
            set
            {
                this.registerProcedure = RssDefault.Check(value);
            }
        }
    }
}
